package com.caipin.domain.camera;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:16
 * @Description: TODO
 */
public class InvasionReport {
    private String classroomId;

    private String eventName;

    private String happenTime;

    private ImgBean img;

    public void setClassroomId(String classroomId) {
        this.classroomId = classroomId;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public void setHappenTime(String happenTime) {
        this.happenTime = happenTime;
    }

    public void setImg(ImgBean img) {
        this.img = img;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.camera.InvasionReport))
            return false;
        com.caipin.domain.camera.InvasionReport other = (com.caipin.domain.camera.InvasionReport)o;
        if (!other.canEqual(this))
            return false;
        Object this$classroomId = getClassroomId(), other$classroomId = other.getClassroomId();
        if ((this$classroomId == null) ? (other$classroomId != null) : !this$classroomId.equals(other$classroomId))
            return false;
        Object this$eventName = getEventName(), other$eventName = other.getEventName();
        if ((this$eventName == null) ? (other$eventName != null) : !this$eventName.equals(other$eventName))
            return false;
        Object this$happenTime = getHappenTime(), other$happenTime = other.getHappenTime();
        if ((this$happenTime == null) ? (other$happenTime != null) : !this$happenTime.equals(other$happenTime))
            return false;
        Object this$img = getImg(), other$img = other.getImg();
        return !((this$img == null) ? (other$img != null) : !this$img.equals(other$img));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.camera.InvasionReport;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $classroomId = getClassroomId();
        result = result * 59 + (($classroomId == null) ? 43 : $classroomId.hashCode());
        Object $eventName = getEventName();
        result = result * 59 + (($eventName == null) ? 43 : $eventName.hashCode());
        Object $happenTime = getHappenTime();
        result = result * 59 + (($happenTime == null) ? 43 : $happenTime.hashCode());
        Object $img = getImg();
        return result * 59 + (($img == null) ? 43 : $img.hashCode());
    }

    public String toString() {
        return "InvasionReport(classroomId=" + getClassroomId() + ", eventName=" + getEventName() + ", happenTime=" + getHappenTime() + ", img=" + getImg() + ")";
    }

    public String getClassroomId() {
        return this.classroomId;
    }

    public String getEventName() {
        return this.eventName;
    }

    public String getHappenTime() {
        return this.happenTime;
    }

    public ImgBean getImg() {
        return this.img;
    }
}

